reflect the presence of signal connections through unsetting
authorTim Janik <timj@gtk.org>
Fri, 8 May 1998 23:20:48 +0000 (23:20 +0000)
committerTim Janik <timj@src.gnome.org>
Fri, 8 May 1998 23:20:48 +0000 (23:20 +0000)
commit142c8483080b03bc415ae630f979b3327c505abc
tree00e6977d7fe4bc543ab8035121b0547f2e14174e
parent6e99903a4efb324f0a2bdcc3936a7a73064b21fa
reflect the presence of signal connections through unsetting

Sat May  9 00:03:12 1998  Tim Janik  <timj@gtk.org>

        * gtk/gtksignal.c (gtk_signal_handler_unref): reflect the presence of
        signal connections through unsetting GTK_CONNECTED.
        (gtk_signal_handler_insert): reflect the presence of signal connections
        through setting GTK_CONNECTED.
        (gtk_signal_real_emit): only check for handler emissions if the object
        has the GTK_CONNECTED flag set.
        (gtk_signal_handler_pending): don't check for pending handlers if the
        GTK_CONNECTED flag is not set for this object.

        * gtk/gtkobject.h (enum): new flag GTK_CONNECTED to indicate whether
        a GtkObject has signal handler connections.

        * gtk/gtkobject.c (gtk_object_real_destroy): only if GTK_CONNECTED is
        set for this object call gtk_signal_handlers_destroy().

        * gtk/gtktypeutils.h (GTK_TYPE_IS_A): deprecated macro, since it caused
        multiple processing of macro args.

        * gtk/gtktypeutils.c:
        * gtk/gtkobject.c:
        * gtk/gtkwidget.c:
        * gtk/gtksignal.c: reverted GTK_TYPE_IS_A back to gtk_type_is_a.
13 files changed:
ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gtk/gtkobject.c
gtk/gtkobject.h
gtk/gtksignal.c
gtk/gtktypeutils.c
gtk/gtktypeutils.h
gtk/gtkwidget.c